package br.com.sge.entidades;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 *
 * @author Gustavo Rodrigues Torre
 */
@Entity
@Table(name = "tb_professor", schema = "sge")
public class Professor implements Serializable {

	private static final long serialVersionUID = 1L;
	
	
	@Id
	@GeneratedValue
	@Column(name = "cd_professor", nullable = false, updatable = false)
    private long id;
	
	@ManyToOne
	@JoinColumn(name = "cd_disciplina")
	private Disciplina disciplina;
	
	@Column(name = "ds_nome")
    private String nome;
	
	@Column(name = "ds_telefone")
    private String telefone;
	
	@Column(name = "ds_cpf")
	private String cpf;
    
	@Column(name = "ds_rg")
    private String rg;
	
	@Column(name = "st_professor")
    private String situacao;
	
    public Professor() {
    }
    
	public Professor(long id, Disciplina disciplina, String nome, String telefone, String cpf,
			String rg, String situacao) {
		this.id = id;
		this.disciplina = disciplina;
		this.nome = nome;
		this.telefone = telefone;
		this.cpf = cpf;
		this.rg = rg;
		this.situacao = situacao;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}
	
	public Disciplina getDisciplina() {
		return disciplina;
	}
	
	public void setDisciplina(Disciplina disciplina) {
		this.disciplina = disciplina;
	}
	
	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	public String getTelefone() {
		return telefone;
	}

	public void setTelefone(String telefone) {
		this.telefone = telefone;
	}
	
	public String getCpf() {
		return cpf;
	}

	public void setCpf(String cpf) {
		this.cpf = cpf;
	}
	
	public String getRg() {
		return rg;
	}

	public void setRg(String rg) {
		this.rg = rg;
	}

	public String getSituacao() {
		return situacao;
	}

	public void setSituacao(String situacao) {
		this.situacao = situacao;
	}
    
}